package com.universe.family.model.video;

import lombok.Data;
import org.aspectj.lang.annotation.DeclareAnnotation;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户数据的domain类
 * @author ScienJus
 * @date 2015/7/31.
 */
@Entity
@Table(name = "user_")
@Data
public class User {
    //用户名
    @Column(name = "username_")
    private String username;

    //密码
    @Column(name = "password_")
    private String password;

    //用户id
    @Id
    @Column(name = "id_")
    private long id;

    //昵称
    @Column(name = "nickname_")
    private String nickname;

    //类型
    @Column(name = "type_")
    private String type;
}
